package com.legolas.utils;

import org.apache.shiro.SecurityUtils;


public class ShiroSession {

    public static void set(String key, String value) {
        SecurityUtils.getSubject().getSession().setAttribute(key, value);
    }

    public static Object getByKey(String key) {
        return SecurityUtils.getSubject().getSession().getAttribute(key);
    }
}
